package com.ruoyi.ai.controller;

import com.ruoyi.ai.service.IExtendUserService;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:ExtendUserController
 * @author: caoes
 * create:2023/6/29 17:44
 **/
@Api(tags = "用户相关接口")
@RestController
@RequestMapping("/user")
public class ExtendUserController {

    @Autowired
    private IExtendUserService iExtendUserService;
    @ApiOperation(value = "getUserInfo", notes = "获取登陆用户信息")
    @GetMapping("/getUserInfo")
    public AjaxResult getUserInfo() {
        return AjaxResult.success(iExtendUserService.getUserInfo());
    }
}
